home *** CD-ROM | disk | FTP | other *** search
/ Champak 43 / Vol 43.iso / games / superdog.swf / scripts / DefineSprite_10_BOSS导弹 / frame_1 / DoAction.as
Encoding:
Text File  |  2007-06-25  |  427 b   |  21 lines

  1. stop();
  2. _parent._parent.enemy_array.push(this._name);
  3. onEnterFrame = function()
  4. {
  5.    if(_parent._parent.pauses == false)
  6.    {
  7.       if(this._xscale == 100)
  8.       {
  9.          this._x -= 8;
  10.       }
  11.       else if(this._xscale == -100)
  12.       {
  13.          this._x += 8;
  14.       }
  15.       if(this.getBounds(_root).xMin > 600 or this.getBounds(_root).xMin < -100)
  16.       {
  17.          this.removeMovieClip();
  18.       }
  19.    }
  20. };
  21.